package com.authine.cloudpivot.ext.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.authine.cloudpivot.ext.enums.order.OrderCustomerStatusEnum;
import com.authine.cloudpivot.ext.eum.CustomerOrderStatusV1Enum;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @ClassName OrderCustomerDto
 * @Description: 客户订单表
 * @Author cjj
 * @Date 2021/4/9
 * @Version V1.0
 **/
@Data
@Schema(description = "OrderCustomerDto")
@ApiModel("客户订单表")
public class OrderCustomerDto {
    @Schema(description = "客户订单ID")
    private String id;
    @Schema(description = "客户订单ID集合")
//    @JSONField(deserializeUsing = )
    private List<String> ids;
    @Schema(description = "erp PO")
    private String erpPO;
    @Schema(description = "状态")
    private OrderCustomerStatusEnum orderCustomerStatus;
    @Schema(description = "收货人")
    private String receiver;
    @Schema(description = "电话")
    private String phone;
    @Schema(description = "邮编")
    private String postal;
    @Schema(description = "地址")
    private String address;
    @Schema(description = "下单人")
    private String placeOrderFullname;
    @Schema(description = "下单组织")
    private String organizationName;
    @Schema(description = "下单日期-开始日期", pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;
    @Schema(description = "下单日期-结束日期", pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;
    @Schema(description = "pageIndex")
    private Integer pageIndex;
    @Schema(description = "pageSize")
    private Integer pageSize;
    @Schema(description = "客户订单商品集合")
    private List<OrderCustomerGoodsDto> goods;
    //place_order_user_id
    @Schema(description = "实际下单人id集合")
    private List<String> placeOrderUserIdList;
    @Schema(description = "状态 old")
    private CustomerOrderStatusV1Enum customerOrderStatusV1Enum;
    @Schema(description = "移动端关联字模糊搜索")
    private String keyWord;
}
